package golf;

import java.sql.ResultSet;
import java.sql.SQLException;

/*
 * PROPNO
POWER
IMPACT
TECH
STAMINA
 */
public class Property {
	int power;
	int impact;
	int technique;
	int stamina;
	int prop_no;

	public Property(){}
	public Property(ResultSet rs){
		try {
			setProp_no( rs.getInt("PROPNO") );
			setPower( rs.getInt("POWER") );
			setImpact( rs.getInt("IMPACT") );
			setTechnique( rs.getInt("TECH") );
			setStamina( rs.getInt("STAMINA") );
		
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public int getPower() {
		return power;
	}
	public void setPower(int power) {
		this.power = power;
	}
	public int getImpact() {
		return impact;
	}
	public void setImpact(int impact) {
		this.impact = impact;
	}
	public int getTechnique() {
		return technique;
	}
	public void setTechnique(int technique) {
		this.technique = technique;
	}
	public int getStamina() {
		return stamina;
	}
	public void setStamina(int stamina) {
		this.stamina = stamina;
	}
	public int getProp_no() {
		return prop_no;
	}
	public void setProp_no(int prop_no) {
		this.prop_no = prop_no;
	}
}
